function PRE_Preprocess()

%% Diary
tStart = InitializeDiary('PRE_Preprocess');

%% Set up flow..
SkipPrepare = false %#ok<NOPRT> % Display the settings
SkipEpoching = SkipPrepare %#ok<NOPRT> % Display the settings

%% Actual work..
if SkipPrepare && SkipEpoching
    %% Restore epoch information..
    RestoreEpochDataOutputDatabase;
else
    %% Reset the database and rebuild from the start.
    ResetDatabase;
    PRE1_Prepare();
    PRE2_Epoch();
end

PRE3_TimeFrequency();

%% Diary
CloseDiary(tStart);
end









